import logo from './logo.svg';
import './App.css';
import APIService from './services/apiservice';
import { Routes, Route } from "react-router-dom";
import { BrowserRouter } from 'react-router-dom';
import Sqls from './components/sqls';

function App() {
  let apiService = new APIService();
  return (
    <BrowserRouter basename="/">
    <div className="App">
      <header className="App-header">
        <img src={logo} className="App-logo" alt="logo" />
        <p>
          Edit <code>src/App.js</code> and save to reload.
        </p>
        <a
          className="App-link"
          href="https://reactjs.org"
          target="_blank"
          rel="noopener noreferrer"
        >
          Learn React
        </a>
      </header>
            <Routes>
              <Route path='/sqls'
                     element={<Sqls />}
              />
              </Routes>
    </div>
      </BrowserRouter>
  );
}

export default App;
